﻿@model vw08_equest.Areas.Administrator.Models.Exam

<style type="text/css">
    .alert
    {
    	display:none;
    }
</style>

<script type="text/javascript">
    $(document).ready(function () {
        ShowArlert();
    });

    function ShowArlert() {
        var Error = '@ViewBag.Error';
        if (Error != '')
            $(".alert-error").show();
        var Success = '@ViewBag.Success';
        if (Success != '')
            $(".alert-success").show();
        var Warning = '@ViewBag.Warning';
        if (Warning != '')
            $(".alert-info").show();
    }
</script>

<div class="page-header">
    <div class="icon">
        <span class="ico-pen-2"></span>
    </div>
    <h1>
        Cập nhật đợt thi <small>VWSOL METRO STYLE ADMIN PANEL</small></h1>
</div>
<div class="row-fluid">
    <div class="block">
        <div class="alert alert-error">            
            <strong>@ViewBag.Error</strong>
        </div>
        <div class="alert alert-success">            
            <strong>@ViewBag.Success</strong>
        </div>            
        <div class="alert alert-info">            
            <strong>@ViewBag.Warning</strong>
        </div>
        <div class="head">                                
            <h2>Thông tin đợt thi</h2>
            <ul class="buttons">             
                <li><a href="javascript:void(0)"><div class="icon"><span class="ico-info"></span></div></a></li>
            </ul>                                  
        </div>
        @using (Html.BeginForm("EditExam", "AdminExam", FormMethod.Post, new { id = "validate", enctype = "multipart/form-data" }))
        {
            <div class="data-fluid">
                <div class="span6">
                    <div class="row-form">
                        <div class="span3">Tên đợt thi:</div>
                        <div class="span9">
                            <input type="hidden" name="ExamID" id="ExamID" value="@Model.ExamID" />
                            <input id="ExamName" name="ExamName" type="text" class="validate[required]" value="@Model.ExamName"/>
                        </div>
                    </div>
                    <div class="row-form">
                        <div class="span3">Số câu hỏi khó:</div>
                        <div class="span9"><input id="HardQuestion" name="HardQuestion" type="text" class="validate[custom[integer],min[0]]" value="@Model.HardQuestion"/></div>
                    </div>
                    <div class="row-form">
                        <div class="span3">Số câu hỏi trung bình:</div>
                        <div class="span9"><input id="MediumQuestion" name="MediumQuestion" type="text" class="validate[custom[integer],min[0]]" value="@Model.MediumQuestion"/></div>
                    </div>
                    <div class="row-form">
                        <div class="span3">Số câu hỏi dễ:</div>
                        <div class="span9"><input id="EasyQuestion" name="EasyQuestion" type="text" class="validate[custom[integer],min[0]]" value="@Model.EasyQuestion"/></div>
                    </div>
                    <div class="row-form">
                        <div class="span3">Hệ số điểm:</div>
                        <div class="span9"><input id="MaxPoint" name="MaxPoint" type="text" class="validate[required,custom[integer],min[0]]" value="@Model.MaxPoint"/></div>
                    </div>
                    <div class="row-form">
                        <div class="span3">Thời gian thi:</div>
                        <div class="span9">
                            <input id="MaxMinute" name="MaxMinute" type="text" class="validate[required,custom[integer],min[0]]" value="@Model.MaxMinute"/>
                            <span class="bottom">Đơn vị tính: Phút</span>
                        </div>
                    </div>
                    <div class="row-form">
                        <div class="span3">Mở đợt thi:</div>
                        <div class="span9">
                            @Html.CheckBoxFor(m=>m.IsInUse)
                        </div>
                    </div>
                    <div class="row-form">
                        <div class="span3">&nbsp;</div>
                        <div class="span9">
                            <button class="btn" type="submit">
                                <span class="icon-th icon-white"></span>
                                Cập nhật đợt thi
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        }
    </div>
</div>